package lovoStudy_04.CarManage;

/**
 * Created with Intellij IDEA
 * Description:
 *
 * @ return:
 * @ author:zxl
 */
/*
*
* 警官类
* */
public class Police {
    public String name;
    public Police(){}
    public Police(String name){
        this.name = name;
    }
    public void capture(CarOwner carOwner,Rules rules){
        System.out.println("交警: " + this.name + " 记录,车主: " + carOwner.name + " 驾驶车辆: " + carOwner.carName +
                " 发生违法记录,应缴金额: " +
            rules.money);
    }

}
